<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>testCookie</title>
</head>
<script src="../js/paramsTool.js"></script>
<script src="../js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
    setCookie('test','testCookie');
    setTimeout(function () {
        $('#div1').html(getCookie('test'));
    },1000);
</script>
<body>
<div id="div1">一秒钟后我会变化哦</div>
<div>我不会变化</div>
</body>
</html>